async function run($input,$output,$modules = modules){
    let dingTalkApi = $modules.dingTalkApi;
    let token = await dingTalkApi.getAccessToken();
    token = token.access_token;
    let url = "https://oapi.dingtalk.com/department/create?access_token="+token;
    let resp = await $modules.curl(url,{
        method:"post",
        contentType:"json",
        data:{
            name:$input.name,
            parentid:$input.parentid,
            order:$input.order,
            createDeptGroup:eval($input.createDeptGroup),
            deptHiding:eval($input.deptHiding)
        }
    });
    let data = new String(resp.data);
    data = JSON.parse(data);
    $output.id = data.id;
}